package com.qfedu.ssm.controllers;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/m")
public class MController {
    @RequestMapping("/add.do")
    @RequiresPermissions("/sys:m:save")
    public String add(){
        System.out.println("m---------add");
        return "/index.jsp";
    }
    @RequestMapping("/update.do")
    @RequiresPermissions("/sys:m:update")
    public String update(){
        System.out.println("m---------update");
        return "/index.jsp";
    }
    @RequestMapping("/delete.do")
    @RequiresPermissions("/sys:m:delete")
    public String delete(){
        System.out.println("m---------delete");
        return "/index.jsp";
    }
    @RequestMapping("/find.do")
    @RequiresPermissions("/sys:m:find")
    public String find(){
        System.out.println("m---------find");
        return "/index.jsp";
    }
}
